﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using Model;
using BLL;

namespace EstateappraisalApi.Controllers
{
    /// <summary>
    /// 评估
    /// </summary>
    public class AssessmentController : ApiController
    {

        Basic_InfoBLL bll = new Basic_InfoBLL();

        // GET api/assessment
        public IEnumerable<string> Get()
        {
            return new string[] { "value1", "value2" };
        }

        // GET api/assessment/5
        public string Get(int id)
        {
            return "value";
        }

        // POST api/assessment
        public void Post([FromBody]string value)
        {
        }

        // PUT api/assessment/5
        public int Put([FromBody]Basic_Info m)
        {
            if(bll.UptpBasic_Info(m))
            {
                return 1;
            }
            else
            {
                return 0;
            }

        }

        // DELETE api/assessment/5
        public void Delete(int id)
        {
        }
    }
}
